package cn.infinite.security.point;

import org.springframework.security.core.Authentication;

import javax.management.OperationsException;

/**
 * 短信验证码生成接口
 * 实现类的RequestMapping注解的路径映射必须以 配置的scopePath 开始
 *
 * @param <T> 返回值类型
 */
public interface SmsCheckCodeGenerateAble<T> {

    T sendSmsCheckCode(Authentication authentication) throws OperationsException;
}
